package pojo;

public class Student {
	private String name;
	private int po;
	private int math;
	private int chi;
	public int getMath() {

		return math;
	}
	public void setMath(int math) {
		this.math = math;
	}
	public int getChi() {
		return chi;
	}
	public void setChi(int chi) {
		this.chi = chi;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPo() {
		return po;
	}
	public void setPo(int po) {
		this.po = po;
	}
	public Student(String name,int po,int math,int chi) {
		this.name=name;
		this.po=po;
		this.math=math;
		this.chi=chi;

	}
	
	public Student() {
		super();
	}
	public double sun(int po,int math,int chi) {

		return (po+math+chi)/3;
	}
}